package com.demo2do.boyle.backend.service.advertisement;

import java.util.List;

import com.demo2do.boyle.common.entity.advertisement.Advertisement;
import com.demo2do.boyle.common.entity.advertisement.Status;
import com.demo2do.core.persistence.support.Filter;
import com.demo2do.core.service.GenericService;
import com.demo2do.core.web.resolver.Page;

/**
 * @author leo
 */
public interface AdvertisementService extends GenericService<Advertisement>{
	
    
    /**
     * 
     * @param status
     * @return the advertisement count
     */
    public int count(Status status);

    /**
     * 
     * @param filter
     * @return the filter list count
     */
    public int count(Filter filter);

    /**
     * 
     * @param page
     * @return the advertisement list
     */
    public List<Advertisement> list(Page page);
    
    /**
     * 
     * @param page
     * @param status
     * @return the auditing advertisement list
     */
    public List<Advertisement> list(Status status, Page page);

    /**
     * 
     * @param advertisement
     * @return the auditing advertisement list
     */
	void updateClaimNumber(Advertisement advertisement);
    
}
